import Vue from 'vue'
import VueRouter from 'vue-router';
import Login from './pages/Login.vue';
import Reg from './pages/Reg.vue';
import Manage from './pages/Manage.vue';
import Student from './pages/Student.vue';
import Class from './pages/Class.vue';
import Teacher from './pages/Teacher.vue';
Vue.use(VueRouter)
const router = new VueRouter({
    mode: 'history',

    routes: [
        { path: '/login', component: Login },
        { path: '/reg', component: Reg },
        { path: '/manage', component: Manage,
        children:[
          { path: 'student', component: Student },
          { path: 'class', component: Class },
          { path: 'teacher', component: Teacher }
        ]
      },
    ]
  })
export default router;